<?php
include("sqlconnect.php");

$fname=$_POST['test'];

session_start(); 
//$temp=$_SESSION['option'];

echo "$fname";
$_SESSION['fname']=$fname;
?>
</br>
<?

$query="SELECT product_id FROM product WHERE product_category='Consumer Electronics'";
$result=mysql_query($query);
$num=mysql_numrows($result);
		$i=0;
		while($i<$num)
		{

		$field3=mysql_result($result,$i,"product_id");

		//echo "$field3";
		
		$i++;
		}

$_SESSION['login']=1;
 header('Location: vendor_tab.php');
?>